package cc.yugu.yhdw.common.domain.basic;

/**
 * 通过支付宝创建的支付订单（添加的属性客户姓名和手机号）
 *
 * @Date:Created in 2018/7/24 10:53
 * @Author:
 * @Modified By: zxj 2018/7/24 10:53
 */
public class AlipayPayOrder extends PayOrder {
    String customerName;// 客户姓名
    String mobile; // 客户手机号

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    /**
     * 获取订单状态
     * @Param []
     * @Return java.lang.String
     * @Author zxj 2018/7/24
     */
    public String getStatusName(){
        if (orderStatus == null || Status.getName(orderStatus) == null) {
            return "";
        }
        return Status.getName(orderStatus);
    }
}
